package com.linln.admin.system.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter;

import java.util.concurrent.atomic.AtomicInteger;

@Configuration
public class DataSourceConfig {

    @Bean
    public AtomicInteger atomicIntegerBean() {
        return new AtomicInteger(0);
    }

    @Bean
    public OpenEntityManagerInViewFilter openEntityManagerInViewFilter() {
        return new OpenEntityManagerInViewFilter();
    }
}
